import axios, { ResDataType } from '../../../base/utils/ajax';

export async function getCategoryService() {
    const url = '/category';
    const data = (await axios.get(url)) as ResDataType;
    return data;
}